<!DOCTYPE html>
<html lang="zh-CN">
<head>
    {% for section in site.data.navigation.main %}{% if section.category == page.category %}{% assign section-title = section.title %}{% endif %}{% endfor %}
    {% if page.landing_page %}
    <title>Ktor 中文站 - Kotlin 异步 Web 框架</title>
    {% elsif section-category == page.title or page.category == null %}
    <title>{{ site.title | prepend: " - " | prepend: page.title }}</title>
    {% else %}
    <title>{{ site.title | prepend: " - " | prepend: section-title | prepend: " - " | prepend: page.title }}</title>
    {% endif %}
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="shortcut icon" href="{{ '/favicon.ico' | relative_url }}">

    <link rel="stylesheet" href="{{ '/assets/plugins/bootstrap/css/bootstrap.min.css' | relative_url }}">
    <link rel="stylesheet" href="{{ '/assets/plugins/font-awesome/css/font-awesome.css' | relative_url }}">
    <link rel="stylesheet" href="{{ '/assets/plugins/elegant_font/css/style.css' | relative_url }}">
    <link rel="stylesheet" href="{{ '/assets/plugins/github-embed/github-embed.css' | relative_url }}">

    <link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url }}?v=3">
    <link rel="stylesheet" media="print" href="{{ '/assets/css/print.css' | relative_url }}?v=3">

    <script type="text/javascript" src="{{ '/assets/plugins/jquery-1.12.3.min.js' | relative_url }}" defer></script>
    <script type="text/javascript" src="{{ '/assets/plugins/bootstrap/js/bootstrap.min.js' | relative_url }}" defer></script>
    <script type="text/javascript" src="{{ '/assets/js/extra.js' | relative_url }}" defer></script>
</head>

{% for section in site.data.navigation.main %}
{% if section.category == page.category %}
{% assign sectioncolor = section.color %}
{% endif %}
{% endfor %}

{% if page.landing_page %}
{% assign body_class = "landing-page" %}
{% else %}
{% assign body_class = "body-" | append: sectioncolor %}
{% endif %}

<body class="{{ body_class }}">
    <div class="page-wrapper">

        {{ content }}

    </div><!--//page-wrapper-->

    <footer class="footer text-center">
        <div class="container">
            <!--/* This template is released under the Creative Commons Attribution 3.0 License. Please keep the attribution link below when using for your own project. Thank you for your support. :) If you'd like to use the template without the attribution, you can check out other license options via our website: themes.3rdwavemedia.com */-->
            <small class="copyright">由 <a href="https://themes.3rdwavemedia.com/" target="_blank" rel="noopener nofollow">Xiaoying Riley</a> 精<i class="fa fa-heart"></i>为开发者设计的 PrettyDocs 主题</small>
            <small class="terms-copyright">采用 <a href="https://github.com/JetBrains/kotlin-web-site/blob/master/LICENSE">Apache 2 许可协议</a></small>
	    <small class="terms-sponsor">Ktor 与 Ktor 官方英文站由 <a href="https://www.jetbrains.com" class="sponsor sponsor_jetbrains" target="_blank" rel="noopener">JetBrains</a> 赞助与开发；本站由 <a href="https://hltj.me/">灰蓝天际</a>译</small>
        </div><!--//container-->
    </footer><!--//footer-->

</body>
<!-- the google_analytics_id gets auto inserted from the config file -->

{% if site.google_analytics %}

<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','{{site.google_analytics}}','auto');ga('require','displayfeatures');ga('send','pageview');</script>

{% endif %}

</html>

